/*
 * @Author: your name
 * @Date: 2020-09-18 10:44:29
 * @LastEditTime: 2021-01-17 16:13:57
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-RESTfulAPI\app\model\carRealTime.js
 */
module.exports = app => {
  const mongoose = app.mongoose
  const Schema = mongoose.Schema
  const SceneSchema = new mongoose.Schema({
    sceneName: { type: String, unique: false },

    planId: { type: Schema.Types.ObjectId, ref: 'PlanManagerModel' },
    dateBegin: { type: String, },

    dateEnd: { type: String, },

    carNumber: { type: Number, unique: false },

    ODCities: { type: String, unique: false },

    runTime: { type: String, unique: false },


  }, { timestamps: { createdAt: 'created', updatedAt: 'updated' }, usePushEach: true })
  return mongoose.model('Scene', SceneSchema)
}



